/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-04-17 11:59:14
 * @LastEditTime: 2021-04-17 12:04:27
 */

let { SyncHook } = require('tapable');

class Lesson {
    constructor() {
        this.hook = {
            arch: new SyncHook(['name', 'age']),
        }
    }

    tap() { 
        this.hook.arch.tap('node', (...res)=>{
            console.log("node", ...res);
        });
    }

    start() { 
        this.hook.arch.call('wq1', '12')
    }
}

let lesson = new Lesson();

lesson.tap();
lesson.start();
